#!/bin/sh

# Take screenshot and save to ~/Screenshots/test.png
maim -s ~/Screenshots/test.png

# Upload screenshot using curl to https://0x0.st
curl -F "file=@$HOME/Screenshots/test.png" https://0x0.st | xclip

# Send a notification to inform the user the screenshot has been uploaded
notify-send "Screenshot has been copied to clipboard!"
